import React, { Fragment } from 'react'
import { Switch, Route, Redirect } from 'react-router-dom'
import './App.less'
import Admin from './pages/Admin'
import Login from './pages/Login'

const App = () => {
    return (
        <Fragment>
            <Switch>
                <Route path="/login" component={Login} />
                <Route path="/admin" component={Admin} />
                <Redirect to="/login" />
            </Switch>
        </Fragment>
    )
}

export default App
